#!/usr/bin/env python 
# -*- coding: utf-8 -*-
# @Time    : 2022/9/19 8:55
# @Author  : Junzhao
# @File    : def1.py
# @Software: PyCharm

def pr_triangle(num: int):
    for x in range(num):
        for y in range(num):
            print("*", end=" ")
        print()


pr_triangle(5)
